package com.imooc.joe_springmvc1.javaconfig;

import org.springframework.context.annotation.Bean;

import java.util.function.Function;

/**
 * 配置类
 * Created by joe on 16-8-9.
 */
public class JavaConfig {

    @Bean
    public FunctionService functionService(){
        return new FunctionService();
    }

    @Bean
    public UseFunctionService useFunctionService(FunctionService functionService){
        UseFunctionService useFunctionService = new UseFunctionService();
        useFunctionService.setFunctionService(functionService);
        return useFunctionService;
    }
}
